Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor workflow to properly wait for migrations #6272

Merged
merged 3 commits into from
Sep 12, 2023

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented Sep 12, 2023

WHAT

🤖 Generated by Copilot at 43305da

Improved the reliability and speed of the cypress workflow by separating the steps of starting the care service and loading dummy data. Used a custom action to wait for the migrations to finish before proceeding.

This pull request introduces an important enhancement to the Docker setup script. Previously, the script used a fixed sleep time to wait for the database migrations to complete before loading the dummy data. This approach was not reliable because the actual time required for the migrations can vary.

The updated script now dynamically waits for all database migrations to be applied before proceeding to load the dummy data. This is achieved by continuously checking for any unapplied migrations every 5 seconds, and once all migrations have been applied, the script proceeds to load the dummy data.

image

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

HOW

🤖 Generated by Copilot at 43305da

  • Wait for care service migrations to finish before loading dummy data (link)

@Ashesh3 Ashesh3 requested a review from a team September 12, 2023 10:00
@Ashesh3 Ashesh3 requested a review from a team as a code owner September 12, 2023 10:00
@Ashesh3 Ashesh3 requested a review from gigincg September 12, 2023 10:00
@vercel
Copy link

vercel bot commented Sep 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2023 11:43am

@netlify
Copy link

netlify bot commented Sep 12, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 88c915e
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/65004ed85db70e000848aa24
😎 Deploy Preview https://deploy-preview-6272--care-egov-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Ashesh3 Ashesh3 marked this pull request as draft September 12, 2023 10:04
@github-actions github-actions bot added the cypress failed pull request with cypress test failure label Sep 12, 2023
@Ashesh3 Ashesh3 marked this pull request as ready for review September 12, 2023 11:51
@cypress
Copy link

cypress bot commented Sep 12, 2023

Passing run #1229 ↗︎

0 71 0 0 Flakiness 0

Details:

Merge 88c915e into dd1dcc3...
Project: CARE Commit: ab63bbde53 ℹ️
Status: Passed Duration: 07:19 💡
Started: Sep 12, 2023 11:47 AM Ended: Sep 12, 2023 11:54 AM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@github-actions github-actions bot added cypress passed and removed cypress failed pull request with cypress test failure labels Sep 12, 2023
@khavinshankar khavinshankar merged commit d0ffbd5 into develop Sep 12, 2023
@github-actions
Copy link

@Ashesh3 We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌.

@bodhish bodhish deleted the load_dummy_wait branch December 1, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants